//
//  AccountSignInCell.swift
//  SecretChat
//
//  Created by TimTiger on 16/6/22.
//  Copyright © 2016年 TimTiger. All rights reserved.
//

import UIKit
import MudFramework

class AccountSignInCell: MudTableViewCell {
    var textField: UITextField!
    
    override func initContentViews() {
        super.initContentViews()
        self.setCellLine()
        self.initTextField()
    }
    
    private func setCellLine() {
        self.showCellLine = true
        self.lineColor = MudColor.lightGrayColor()
        self.lineEdge = UIEdgeInsetsMake(0, 15, 0, 0)
    }
    
    private func initTextField() {
        self.textField = UITextField(frame: CGRectMake(0,0,MudScreen.width,50))
        self.textField.borderStyle = UITextBorderStyle.None
        let placeholderString = NSAttributedString(string: MudLocalString.stringForKey(""), attributes: [NSForegroundColorAttributeName: MudColor.grayColor()])
        self.textField.attributedPlaceholder = placeholderString
        self.textField.textColor = MudColor.blackColor()
        self.contentView.addSubview(self.textField)
    }
}
